package com.wxmit.framework.excel.domain;

import cn.hutool.core.collection.CollUtil;
import com.wxmit.base.exception.excel.ExcelReadValidException;
import lombok.Data;

import java.util.List;

/**
 * ExcelImportResult
 *
 * @author huangxiong
 * @version V1.0
 * @date 2023/1/6 17:33
 */
@Data
public class ExcelImportResult<T> {

    private List<T> result;

    private ExcelReadValidException exception;

    public Boolean hasException(){
        return exception != null;
    }

    public Boolean hasResult(){
        return CollUtil.isNotEmpty(result);
    }

}
